package com.chilli.cosima.service;

import java.util.Map;

import com.chilli.cosima.common.BussinessException;
import com.chilli.cosima.data.bean.Customer;

public interface CustomerService
{

	public Long createCustomer(Customer customer) throws BussinessException;

	public void deleteCustomer(Long id) throws BussinessException;

	public void updateCustomer(Customer customer) throws BussinessException;

	public Customer findCustomerById(Long id);

	@SuppressWarnings("unchecked")
	public Map findCustomerByPage(int current, int pageSize);

	@SuppressWarnings("unchecked")
	public Map findCustomerByPageAndQUery(int current, int pageSize,
			String input);
}
